<div id="draw-record" class="draw">
	<table class="table-list">
  		<thead>
		    <tr>
		      <th class="time">提现时间</th>
		      <th class="trade-id">支付宝账号</th>
		      <th class="num">提现金额</th>
		      <th class="num">手续费</th>
		      <th class="num">实收金额</th>
		      <th class="status">状态</th>
		    </tr>
	  	</thead>
	  	<tbody class="list">
			
		</tbody>
	</table>
	<!-- 分页开始 -->
	<div class="loading"><p>正在加载中^_^</p></div>
	<div class="tips">没有数据了</div>
	<div class="pages"></div>
	<!-- 分页结束 -->
</div>
<script type="text/javascript">
var drawList = $.koorz.getList;
drawList.conf.page = "#draw-record .pages";
drawList.conf.tips = "#draw-record .tips";
drawList.conf.loading = "#draw-record .loading";
drawList.conf.list = "#draw-record .list";
drawList.conf.url = "/api/drawList";
drawList.conf.callback = function(list,doc){
	$.each(list,function(index,val) {
		var html = '<tr>';
		html += '<td class="time">'+val.create_time+'</td>';
		html += '<td class="trade-id">'+val.alipay+'</td>';
		html += '<td class="num">'+val.money+'</td>';
		html += '<td class="num">'+val.commission_charge+'</td>';
		html += '<td class="num">'+val.payed+'</td>';
		if(val.check_state == 0){
			html += '<td class="status">处理中</td>';
		}else if(val.check_state == 1){
			html += '<td class="status">提现成功</td>';
		}else {
			html += '<td class="status">提现失败</td>';
		}
		html += '</tr>';
		doc.append(html);
	});
}
drawList.init();	
</script>